package com.androiddelphi;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class VisualizarDiscussoes extends TabActivity{
	private TabHost atabHost;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_visualizar_discussoes);
		// create the TabHost that will contain the Tabs
        TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);


        TabSpec tab1 = tabHost.newTabSpec("Abertas");
        TabSpec tab2 = tabHost.newTabSpec("Priorizar");
        TabSpec tab3 = tabHost.newTabSpec("Encerradas");

        tab1.setIndicator("Abertas");
        tab1.setContent(new Intent(this,Abertas.class));
       
        tab2.setIndicator("Priorizar");
        tab2.setContent(new Intent(this,EscolherPriorizar.class));

        tab3.setIndicator("Encerrar");
        tab3.setContent(new Intent(this,Encerrar.class));
       
        tabHost.addTab(tab1);
        tabHost.addTab(tab2);
        tabHost.addTab(tab3);

	}

}
